Guess the output for the below code??
try:
    num = int(input("Enter a number: "))
    assert num % 2 == 0
except:
    print("Not an even number!")
else:
    r= 1/num
    print(r)


Posted on by